/*	To use unordered_map: g++ -std=c++0x maptest.cpp,
	or use the header in tr1
*/
#include<unordered_map>
//#include<tr1/unordered_map>
#include<list>
#include<iostream>
#include<string>
using namespace std;
//using namespace std::tr1;

int main()
{
	unordered_map<string, char> grades;
	grades["John"]='A';
	grades["David"]='B';
	for(unordered_map<string,char>::iterator it=grades.begin();it!=grades.end();it++)
		cout<<it->first<<','<<it->second<<endl;
	list<int> words;
	words.push_front(3);
	words.push_back(4);
	words.insert(words.end(),2);
	for(list<int>::iterator it=words.begin();it!=words.end();it++)
		cout<<*it<<endl;
	string a="aim";
	string b="sim";
	cout<<(a==b)<<endl;	
}
